package com.kingsalert.kingsalert.bean.config;

import java.io.Serializable;
import java.util.ArrayList;


/**
 * AppShowConfig 返回中的Permssions结构体
 */
public class AppShowPermissions implements Serializable {
    /**
     * 线上版本号
     */
    private int accVersion;
    /**
     * 审核号码
     */
    private String accM;
    /**
     * 审核token
     */
    private String accTk;
    /**
     * 权限页待请求的权限列表
     */
    private ArrayList<String> permission;
    /**
     * 首页待请求的权限列表
     */
    private ArrayList<String> home;
    /**
     * 如果是审核版本，权限页请求的权限列表
     */
    private ArrayList<String> permissionGp;

    public int getAccVersion() {
        return accVersion;
    }

    public void setAccVersion(int accVersion) {
        this.accVersion = accVersion;
    }

    public String getAccM() {
        return accM;
    }

    public void setAccM(String accM) {
        this.accM = accM;
    }

    public String getAccTk() {
        return accTk;
    }

    public void setAccTk(String accTk) {
        this.accTk = accTk;
    }

    public ArrayList<String> getPermission() {
        if (permission == null) {
            permission = new ArrayList<>();
        }
        return permission;
    }

    public void setPermission(ArrayList<String> permission) {
        this.permission = permission;
    }

    public ArrayList<String> getHome() {
        if (home == null) {
            home = new ArrayList<>();
        }
        return home;
    }

    public void setHome(ArrayList<String> home) {
        this.home = home;
    }

    public ArrayList<String> getPermissionGp() {
        if (permissionGp == null) {
            permissionGp = new ArrayList<>();
        }
        return permissionGp;
    }

    public void setPermissionGp(ArrayList<String> permissionGp) {
        this.permissionGp = permissionGp;
    }
}
